//
//  SettingHome.swift
//  CrseAsst
//
//  Created by 申铭 on 2024/2/22.
//

import SwiftUI

struct SettingHome: View {
    
    var body: some View {
        NavigationView {
            List {
                Section {
                    NavigationLink(destination: AboutView()) {
                        Text("归档")
                    }
                    NavigationLink(destination: AboutView()) {
                        Text("回收箱")
                    }
                }
                
                Section {
                    Button(action: {
                        log.verbose("清除缓存")
                    }, label: {
                        Text("清除缓存")
                            .foregroundColor(.primary)
                    })
                }
                
                Section {
                    NavigationLink(destination: AboutView()) {
                        Text("关于")
                    }
                }
            }
            .navigationBarTitle("设置")
            .navigationBarTitleDisplayMode(.automatic)
        }
    }
}

#Preview {
    SettingHome()
}
